//
//  UINavigationController+Extend.h
//  MexicoLoan
//
//  Created by wxp on 2025/2/26.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UINavigationController (Extend)

@property (nonatomic,readonly) UIViewController * lastVC;
@property (nonatomic,readonly) UIViewController * lastSecondVC;

//根据名称跳转
- (void)pushVCName:(NSString *)strClassName animated:(BOOL)animated;

//根据名称pop
- (void)popToClass:(NSString *)className;

//根据个数pop
- (void)popMultiVC:(NSInteger)num;

//返回最后一个然后push vc
- (void)popLastAndPushVC:(UIViewController *)vc;

@end

NS_ASSUME_NONNULL_END
